package summer.data;

import lombok.Data;

import java.util.List;


/**
 * 对话模型
 *
 * @since 2021/8/18 15:27
 */
@Data
public class Conversation {

    private Long conversationId;
    private String name;
    private List<Participant> participants;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Conversation that = (Conversation) o;

        return conversationId.equals(that.conversationId);
    }

    @Override
    public int hashCode() {
        return conversationId.hashCode();
    }
}
